namespace Plugins.Core
{
    using System;
    using Plugins.Interfaces;

    public class PluginEventArgs : EventArgs
    {
        private IPluginObject _plugin;

        public PluginEventArgs(IPluginObject plugin)
        {
            this._plugin = plugin;
        }

        public IPluginObject Plugin
        {
            get
            {
                return this._plugin;
            }
        }
    }

    public class PluginWorkItemEventArgs : EventArgs
    {
        private IPluginWorkItem _workItem;

        public PluginWorkItemEventArgs(IPluginWorkItem workItem)
        {
            this._workItem = workItem;
        }

        public IPluginWorkItem WorkItem
        {
            get
            {
                return this._workItem;
            }
        }
    }


    public class PluginWindowEventArgs : EventArgs
    {
        private string _windowName;

        public PluginWindowEventArgs(string windowName)
        {
            this._windowName = windowName;
        }

        public string Name
        {
            get
            {
                return this._windowName;
            }
        }
    }

    public class PluginConfigurationHostEventArgs : EventArgs
    {
        private IPluginConfigurationHost _configuration;
        public PluginConfigurationHostEventArgs(IPluginConfigurationHost configuration)
        {
            _configuration = configuration;
        }
        public IPluginConfigurationHost Configuration
        {
            get
            {
                return _configuration;
            }
        }
    }

    public class PluginHostEventArgs : EventArgs
    {
        private IPluginAssemblyConfiguration _configuration;
        private IPluginHost _host;
        private IPluginObject _plugin;

        public PluginHostEventArgs(IPluginHost host, IPluginAssemblyConfiguration configuration, IPluginObject plugin)
        {
            this._host = host;
            this._plugin = plugin;
            this._configuration = configuration;
        }

        public IPluginAssemblyConfiguration Configuration
        {
            get
            {
                return this._configuration;
            }
        }

        public IPluginHost Host
        {
            get
            {
                return this._host;
            }
        }

        public IPluginObject Plugin
        {
            get
            {
                return this._plugin;
            }
        }
    }
}

